﻿using Rcompany.Type;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Rcompany.DTO
{
    /// <summary>
    /// 非空验证
    /// </summary>
    public class CreateUpdateInputInvoiceDto
    {
        [Required]
        public string InputNo { get; set; }//发票号
        [Required]
        public string InputOffice { get; set; }//发票名称
        [Required]
        public InputInvoiceType InputType { get; set; } = InputInvoiceType.普通发票;//发票类型
        [Required]
        [Column(TypeName = "decimal(18,2)")]
        public decimal InputMoney { get; set; }//发票金额
        [Required]
        public int InputRate { get; set; }//税率
        [Required]
        [Column(TypeName = "decimal(18,2)")]
        public decimal InputTax { get; set; } //税额
        [Required]
        public DateTime Inputtime { get; set; } = DateTime.Now;//开票时间
        [Required]
        public string InputNote { get; set; }//备注
        [Required]
        public string InputHandler { get; set; }//制单人
        [Required]
        public DateTime InputCreatingTime { get; set; } = DateTime.Now; //创造时间
        public string MyProperty { get; set; }//备用
    }
}
